<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021-05-13
  Time: 15:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path;
%>
<c:set var="bp" value="<%=basePath%>"></c:set>
<script>
    function time(){
        var starttime= $("#starttime").val();
        var starttime= $("#stoptime").val();
        console.log(starttime);
    }


</script>
<%--右边主要内容--%>
<body>
<p>起始时间：<input id="starttime" type="date">   结束时间：<input id="stoptime" type="date">  <button onclick="time()"></button></p>
    <h3 style="text-align: center">配送员展示</h3>
    <table class="table table-hover" style="margin: 0 auto; text-align: center">
        <tr>
            <th>配送员编号</th>
            <th>配送员电话</th>
            <th>配送员密码</th>
            <th>性别</th>
            <th>年龄</th>
            <th>配送员评分</th>
            <th>配送员名称</th>
            <th>配送员身份证号</th>
            <th>资料提交情况</th>
            <th>注册资料审核结果</th>
        </tr>
        <c:forEach items="${courier}" var="c">
            <tr>
                <td>${c.did}</td>
                <td>${c.dtel}</td>
                <td>${c.dpass}</td>
                <td>${c.dsex}</td>
                <td>${c.dage}</td>
                <td>${c.dgrade}</td>
                <td>${c.dname}</td>
                <td>${c.didcard}</td>
                <c:if test="${c.ddate.equals('未提交')}"><td style="background-color: yellow">${c.ddate}</td></c:if>
                <c:if test="${c.ddate.equals('已提交')}"><td style="background-color: greenyellow">${c.ddate}</td></c:if>
                <c:if test="${c.dresult.equals('未审核')}"><td style="background-color: yellow">${c.dresult}</td></c:if>
                <c:if test="${c.dresult.equals('审核通过')}"><td style="background-color: greenyellow">${c.dresult}</td></c:if>
                <c:if test="${c.dresult.equals('审核未通过')}"><td style="background-color: red">${c.dresult}</td></c:if>
            </tr>
        </c:forEach>
    </table>

</body>